import Cookie from 'js-cookie'
//import util from '@/libs/util.js'

export default function ({route, req, res, redirect, store}) {
  let isLogin = store.state.token ? true : false
  if (!isLogin) {
    redirect('/user/login')
  }
}
